<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Title</title>
	<script language=javascript src="includes/js/checkinput.js"></script>
	<script language=javascript src="includes/js/viettyping.js"></script>
	<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
	<div id="ThanhVien">
		<?php
			require_once 'includes/banner.inc.php';
		?>

		<div id="Member">
			<div id="User">
				<div id="User1">
					<img src="images/user.jpg" alt="user"/>
				</div>
				<div id="User2">
					<?php
						echo date('s-m-h')
					?>
				</div>
			</div>
			<div id="ContentUser">
				<div id="Content1">
					<p style="margin-top: 12px; margin-left: 20px; margin-bottom: 8px;">Member</p>
					<!---- Danh sách thành viên ---->
					<?php
						require_once 'includes/config.php';
						//Hien thi database
						$result = mysql_query("SELECT * FROM member");
						echo "<table border='1' cellpadding=5px width=100%'><tr><th></th><th></th><th>Ma</th><th>User</th><th>Password</th><th>Email</th><th>BirthDay</th><th>Phone</th><th>Role</th></tr>";
						$i = 0;
						while($row = mysql_fetch_array($result))
						{
						$i=$i+1;
						echo "<tr>";
						echo "<td><a id='h1' href='includes/delete.php?MATHANHVIEN=".$row['MATHANHVIEN']."'><img src='icons/delete-icon.png' alt='Delete'/>".$row['MATHANHVIEN']."</a></td>";
						echo "<td><a id='h2' href='includes/delete.php?MATHANHVIEN=".$row['MATHANHVIEN']."'><img src='icons/edit-icon.png' alt='Delete'/>".$row['MATHANHVIEN']."</a></td>";

						echo "<td>".$row['MATHANHVIEN']."</td>";
						echo "<td>".$row['IDTHANHVIEN']."</td>";
						echo "<td>".$row['PASS']."</td>";
						echo "<td>".$row['EMAIL']."</td>";
						echo "<td>".$row['NGAYSINH']."</td>";
						echo "<td>".$row['PHONE']."</td>";
						echo "<td>".$row['ROLE']."</td>";
						echo "</tr>";
						}
						echo "</table>";
					?>
						Ma thanh vien:<input type="text" name="MaThanhVien"  /><br/>
						<input type="submit" value="Xoa"/><a href='includes/delete.php?MATHANHVIEN=".$row['MATHANHVIEN']."'></a>
					<?php
						mysql_close($con);
					?>
				</div>
				<div id="Content2">
					<p style="margin-top: 12px; margin-left: 20px;">Images</p>
					<!--- Gallery Ảnh --->
				</div>
			</div>
		</div>
	</div>
</body>
</html>